home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / Amos / AMOSList-0497 / AMOSLIST / 000042_amos-request@svcs1.digex.net_Tue Apr 8 10:30:31 1997.msg < prev    next >
Text File  |  1998-06-24  |  8KB  |  205 lines

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
  2.     by mail3.access.digex.net (8.8.5/8.8.5) with ESMTP id KAA19949
  3.     for <mcox@access.digex.net>; Tue, 8 Apr 1997 10:30:31 -0400 (EDT)
  4. Received: (from daemon@localhost)
  5.     by svcs1.digex.net (8.8.5/8.8.5) id IAA03676
  6.     for amos-out; Tue, 8 Apr 1997 08:09:06 -0400 (EDT)
  7. Received: from mail3.access.digex.net (mail3.access.digex.net [205.197.247.4])
  8.     by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id IAA03673
  9.     for <amos-list@svcs1.digex.net>; Tue, 8 Apr 1997 08:09:06 -0400 (EDT)
  10. Received: from vip.cybercity.dk (usr02.cybercity.dk [195.8.128.202])
  11.     by mail3.access.digex.net (8.8.5/8.8.5) with ESMTP id IAA05676
  12.     for <amos-list@access.digex.net>; Tue, 8 Apr 1997 08:09:02 -0400 (EDT)
  13. Received: from vip.cybercity.dk (ccc21504@dis-arh-36.cybercity.dk [195.8.134.164]) by vip.cybercity.dk (8.8.3/8.8.2) with SMTP id OAA22839 for <amos-list@access.digex.net>; Tue, 8 Apr 1997 14:08:37 +0200 (CEST)
  14. From: "Rune J. Keller" <keller@vip.cybercity.dk>
  15. To: AMOS List <amos-list@access.digex.net>
  16. Date: Tue, 08 Apr 1997 14:07:47 +0100
  17. Message-ID: <yam7037.2372.137040736@vip.cybercity.dk>
  18. X-Mailer: YAM 1.3.4 [040] - Amiga Mailer by Marcel Beck
  19. Subject: Optimisation
  20. MIME-Version: 1.0
  21. Content-Type: text/plain; charset=iso-8859-1
  22. Content-Transfer-Encoding: 8bit
  23. X-MIME-Autoconverted: from quoted-printable to 8bit by svcs1.digex.net id IAA03674
  24. Status: RO
  25. X-Status: 
  26.  
  27. I am writing to the list about the Optimisation Tips written by Ben Wyatt.
  28.  
  29. This very good file explains different ways to improve speed in your
  30. AMOS-programs.
  31.  
  32. However some of the tips really surprised me. Ben states that A=A+1 should be
  33. faster than both Inc A and Add A,1. He also writes that Repeat ... Inc ...
  34. Until should be faster than For ... Next. I have been doing some tests on my
  35. system and it clearly proves that this is WRONG!
  36.  
  37. I can not believe that Ben Wyatt has not checked his tips, so I must conclude
  38. that the difference in speed is different on different system (I do not think
  39. that Ben has a 68060?).
  40.  
  41. Anyway I am working on a small program that will test the speed of different
  42. commands, and I am thinking that it should be run on different systems, so we
  43. could clear out which commands is fastest on which system. The rest of the
  44. message is an output of my not-yet-finished speed tester.
  45.  
  46. Do anyone has some comments on this?
  47.  
  48. --------------------------------------------------------------------------------
  49.  
  50.                   AMOS Speed Test v1.0 performed Tue 08-Apr-97
  51.  
  52. --------------------------------------------------------------------------------
  53.  
  54. CPU                                                                       
  55. 68060
  56.  
  57. FPU                                                                    
  58. Built-in
  59.  
  60. Fast Free                                                              
  61. 37242408
  62.  
  63. Chip Free                                                               
  64. 1821344
  65.  
  66. Program State                                                          
  67. Compiled
  68.  
  69. --------------------------------------------------------------------------------
  70.  
  71. Command                                 Origin              Repeats      
  72. Blanks
  73.  
  74. --------------------------------------------------------------------------------
  75.  
  76.                                       Plot
  77.  
  78. --------------------------------------------------------------------------------
  79.  
  80. Plot                                    -                   100000          
  81. 123
  82.  
  83. Ink : Plot                              -                   100000          
  84. 142
  85.  
  86. F Plot                                  Turbo               100000           
  87. 40
  88.  
  89. Turbo Plot                              AMCAF               100000           
  90. 40
  91.  
  92. --------------------------------------------------------------------------------
  93.  
  94.                                       Draw
  95.  
  96. --------------------------------------------------------------------------------
  97.  
  98. Draw                                    -                   2000            
  99. 198
  100.  
  101. Turbo Draw                              AMCAF               2000            
  102. 195
  103.  
  104. --------------------------------------------------------------------------------
  105.  
  106.                                      Circle
  107.  
  108. --------------------------------------------------------------------------------
  109.  
  110. Circle : Paint                          -                   100             
  111. 514
  112.  
  113. F Circle                                AMCAF               100              
  114. 10
  115.  
  116. --------------------------------------------------------------------------------
  117.  
  118.                                       Point
  119.  
  120. --------------------------------------------------------------------------------
  121.  
  122. Point                                   -                   100000           
  123. 78
  124.  
  125. F Point                                 AMCAF               100000           
  126. 39
  127.  
  128. --------------------------------------------------------------------------------
  129.  
  130.                                 Increase Variable
  131.  
  132. --------------------------------------------------------------------------------
  133.  
  134. Inc X                                   -                   500000           
  135. 64
  136.  
  137. Add X,1                                 -                   500000           
  138. 68
  139.  
  140. X=X+1                                   -                   500000           
  141. 73
  142.  
  143. --------------------------------------------------------------------------------
  144.  
  145.                           Increase Dimensioned Variable
  146.  
  147. --------------------------------------------------------------------------------
  148.  
  149. Inc X()                                 -                   500000           
  150. 93
  151.  
  152. Add X(),1                               -                   500000           
  153. 99
  154.  
  155. X()=X()+1                               -                   500000          
  156. 120
  157.  
  158. --------------------------------------------------------------------------------
  159.  
  160.                              Heavy Increase Variable
  161.  
  162. --------------------------------------------------------------------------------
  163.  
  164. Add X,1000                              -                   500000           
  165. 89
  166.  
  167. X=X+1000                                -                   500000           
  168. 93
  169.  
  170. --------------------------------------------------------------------------------
  171.  
  172.                        Heavy Increase Dimensioned Variable
  173.  
  174. --------------------------------------------------------------------------------
  175.  
  176. Add X(),1000                            -                   500000          
  177. 114
  178.  
  179. X()=X()+1000                            -                   500000          
  180. 136
  181.  
  182. --------------------------------------------------------------------------------
  183.  
  184.                                  Countable Loops
  185.  
  186. --------------------------------------------------------------------------------
  187.  
  188. For : Next                              -                   5000000         
  189. 173
  190.  
  191. Repeat : Inc : Until                    -                   5000000         
  192. 322
  193.  
  194. While : Inc : Wend                      -                   5000000         
  195. 322
  196.  
  197. Do : Inc : Exit : Loop                  -                   5000000         
  198. 332
  199.  
  200. --------------------------------------------------------------------------------
  201.  
  202. -- 
  203. rune j. keller - sporuplundsvej 105 - dk-8472 sporup - keller@vip.cybercity.dk
  204. -my mommy always said there were no monsters... no real ones... but there are!
  205.